package com.haibei.activity.setting;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.common.uitl.Tool;
import com.haibei.R;
import com.haibei.activity.BaseHaibeiActivity;

public class AboutActivity extends BaseHaibeiActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		initView();
	}

	@Override
	public void initView() {
		setContentView(R.layout.activity_setting_about);
		findTextViewById(R.id.textViewVersionText).setText("Android 版V:" + Tool.getVersionName(this));
		findButtonById(R.id.buttonBack).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});
		findButtonById(R.id.buttonGoWebSite).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Tool.startUrl(AboutActivity.this, "http://www.baidu.com");
			}
		});
	}
}
